import 'package:json_annotation/json_annotation.dart';

part 'nfc_check_bind_api.g.dart';

@JsonSerializable()
class ResponseNFCCheckBindApi {
  final bool bindState; // true表示已绑定设备，false表示未绑定
  final String deviceUuid; // 若已经绑定，则为绑定的设备uuid
  final String virtualId; // nfc的id
  final bool virtualIdIsExist; // 为false表示nfc不合法

  factory ResponseNFCCheckBindApi.fromJson(Map<String, dynamic> json) =>
      _$ResponseNFCCheckBindApiFromJson(json);

  ResponseNFCCheckBindApi({
    required this.bindState,
    required this.deviceUuid,
    required this.virtualId,
    required this.virtualIdIsExist,
  });
}
